package com.ysu.his.admin.mapper;

import com.ysu.his.dto.UserDepartmentDto;
import com.ysu.his.entity.user.Department;
import com.ysu.his.entity.user.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DepartmentUserMapper
{
    void addDoctorToDepartment(Long departmentId, List<Long> userIdList);

    Boolean doctorIsAvailable(Long id);

    List<User> getDoctorByDepartmentId(Long departmentId);

    Department getDepartmentByDoctorId(Long doctorId);

}
